/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.springboot.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @desc:
 * @author: shollin
 * @date: 2021/6/16/016 6:28
 */
@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class HelloUser {

    private Long id;

    @ApiModelProperty("用户名")
    @NotBlank(message="用户名不能为空")
    private String username;

    private String name;

    private Integer age;
    private BigDecimal salary;

    private LocalDate birthday;

    private Date createTime;

    private LocalDateTime updateTime;

    private HelloUser parent;

    private Pet pet;

    public HelloUser(String name,Integer age){
        this.name = name;
        this.age = age;
    }
}
